const http = require('http');
const querystring = require('querystring')

http.createServer((req, res) => {
  let arr = []
  req.on('data', buffer => {
    console.log(buffer);
    arr.push(buffer)
  })
  req.on('end', () => {
    console.log('结束了')
    let buffer = Buffer.concat(arr)
    let pst = querystring.parse(buffer.toString());
    console.log(pst)

  })
}).listen(4699)